package request

import (
	"counter-help/admin/server/model/common/request"
	"time"
)

type CusUserSearch struct {
	StartCreatedAt *time.Time `json:"startCreatedAt" form:"startCreatedAt"`
	EndCreatedAt   *time.Time `json:"endCreatedAt" form:"endCreatedAt"`
	request.PageInfo
}

type Register struct {
	Username string `json:"userName" example:"用户名"`
	Password string `json:"passWord" example:"密码"`
	Phone    string `json:"phone" example:"电话号码"  binding:"required"`
	Code     string `json:"code" example:"验证码"`
}

type Login struct {
	Username string `json:"username"` // 用户名
	Password string `json:"password"` // 密码
}

// UpdateUserInfoRequest 用于表示用户信息更新的请求结构
type UpdateUserInfoRequest struct {
	Birth    *int64 `json:"birth"`
	Sex      string `json:"sex"`
	Unit     string `json:"unit"`
	Address  string `json:"address"`
	Nickname string `json:"nickname"`
	Research string `json:"research"`
}

type ChangePass struct {
	OldPassword string `json:"oldPassword"` // 用户名
	NewPassword string `json:"newPassword"` // 密码
}

// ResetPasswordRequest 重置密码请求结构
type ResetPasswordRequest struct {
	Phone       string `json:"phone" binding:"required"`       // 手机号
	NewPassword string `json:"newPassword" binding:"required"` // 新密码，改为 newPassword
	Code        string `json:"code" binding:"required"`        // 验证码
}
